import request from '@/utils/request'

// 查询收费数据汇总列表
export function listTollDataSummary(query) {
  return request({
    url: '/function/TollDataSummary/list',
    method: 'get',
    params: query
  })
}

// 查询收费数据汇总详细
export function getTollDataSummary(id) {
  return request({
    url: '/function/TollDataSummary/' + id,
    method: 'get'
  })
}

// 新增收费数据汇总
export function addTollDataSummary(data) {
  return request({
    url: '/function/TollDataSummary',
    method: 'post',
    data: data
  })
}

// 修改收费数据汇总
export function updateTollDataSummary(data) {
  return request({
    url: '/function/TollDataSummary',
    method: 'put',
    data: data
  })
}

// 删除收费数据汇总
export function delTollDataSummary(id) {
  return request({
    url: '/function/TollDataSummary/' + id,
    method: 'delete'
  })
}

// 导出收费数据汇总
export function exportTollDataSummary(query) {
  return request({
    url: '/function/TollDataSummary/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
